"""""
函数返回值
"""
def books(name ,book, day):
    print(f"{name}借阅了书籍《{book}》，借阅{day}天")
books("Nun","yeos",14)

result = books("N","N","89")
print(result)

"""
返回最大值
"""
def number(max,min):
    if max > min:
        return max
    else:
        return min
    print("函数执行完成")
result = number(3,5)
print(result)

"""""
求一个三位数的值
"""
def cal(number):
    high = number // 100
    mid  = number // 10 & 10
    low  = number & 10
    return high,mid,low
result = cal(543)
print(result)

a,b,c = cal(543)
print(a,b,c)